package com.kuzlak.cms.module.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kuzlak.cms.module.sys.entity.SysRole;
import com.kuzlak.cms.module.sys.mapper.SysRoleMapper;
import com.kuzlak.cms.module.sys.service.SysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author hesenjan
* @description 针对表【sys_role】的数据库操作Service实现
* @createDate 2024-11-30 19:24:14
*/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
    implements SysRoleService{

    @Override
    public List<SysRole> batchGetRolesByRoleIds(List<Long> roleIdList) {
        LambdaQueryWrapper<SysRole> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(SysRole::getId,roleIdList);
        return this.list(queryWrapper);

    }
}




